var pool = require('./db');

exports.getRow = function(id,callback_function){
    pool.getConn(function(err,new_conn){
      if(err){
        console.log(err)
      }else{
        var sql = "SELECT * FROM user_info WHERE id = "+id;
        new_conn.query(sql,function(err,result){
          callback_function(err,result);
        });
      }
    })
}